package common;


public class TextMessage extends AbstractMessage{
	

	/**
	 * 
	 */
	private static final long serialVersionUID = -8432346495586100117L;
	private String message;
	private String command;
	
	/**
	 * Constructor
	 * @param msg Content Message and Command
	 */
	public TextMessage (String msg, String comm){
		message=msg;
		command=comm;
	}
	
	/**
	 * Constructor
	 * @param msg Message content
	 */
	public TextMessage (String msg){
		message=msg;
		
	}
	
	/**
	 * Default constructor
	 */
	public TextMessage(){
		command="";
		message="";
	}
	/**
	 * Get message content
	 * @return
	 */
	public String getMessage(){
		return message;
	}
	
	/**
	 * Get command content
	 * @return
	 */
	public String getCommand(){
		return command;
	}
	/**
	 * Set message content
	 * @param msg
	 */
	public void setMessage(String msg){
		message=msg;
	}
	/**
	 * Set command content
	 * @param comm
	 */
	public void setCommand(String comm){
		command=comm;
	}
	@Override
	public String ToDebugMessage() {
		return message;
	}

}
